package org.apache.commons.graph.algorithms.shortestpath.exception

import org.apache.commons.graph.GraphException

/**
 * Exception thrown when [BellmannFord]'s algorithm detects a negative weighted cycle.
 */
class NegativeWeightedCycleException : GraphException {
    constructor(messagePattern: String, vararg arguments: Any?) : super(messagePattern, *arguments)

    constructor(msg: String?, cause: Throwable?) : super(msg, cause)

    constructor(cause: Throwable?) : super(cause)

    companion object {
        private const val serialVersionUID = 3196711750285223435L
    }
}